package com.jrtc.backend.controller;

import com.jrtc.base.config.dto.ResultDTO;
import com.jrtc.base.config.dto.ResultDTOBuilder;
import com.jrtc.base.entity.bo.Examinationitem;
import com.jrtc.service.DoctorserviceService;
import com.jrtc.service.ExaminationitemService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("examinationitem")
public class ExaminationitemController {
    @Resource
    private ExaminationitemService examinationitemService;

    /**
     * 检查项目列表
     * */
    @PostMapping("/examinationitemList")
    public ResultDTO examinationitemList(){
        List<Examinationitem> examinationitems = examinationitemService.examinationitemList();
        return ResultDTOBuilder.success(examinationitems);
    }
}
